// @ts-ignore
/* eslint-disable */
import { request } from '@umijs/max';

/** addTeachClassCourse 添加教师授课记录 POST /api/teach/add */
export async function addTeachClassCourseUsingPost(
  body: API.AddTeacherCourseDTO,
  options?: { [key: string]: any },
) {
  return request<API.ResultTeacherCourseVO_>('/api/teach/add', {
    method: 'POST',
    headers: {
      'Content-Type': 'application/json',
    },
    data: body,
    ...(options || {}),
  });
}

/** deleteTeacherCourse DELETE /api/teach/delete */
export async function deleteTeacherCourseUsingDelete(
  body: API.AddTeacherCourseDTO,
  options?: { [key: string]: any },
) {
  return request<API.ResultVoid_>('/api/teach/delete', {
    method: 'DELETE',
    headers: {
      'Content-Type': 'application/json',
    },
    data: body,
    ...(options || {}),
  });
}

/** pageTeacherCourse 分页获取教师授课记录 POST /api/teach/page */
export async function pageTeacherCourseUsingPost(
  body: API.QueryTeacherCourseDTO,
  options?: { [key: string]: any },
) {
  return request<API.ResultPageTeacherCourseVO_>('/api/teach/page', {
    method: 'POST',
    headers: {
      'Content-Type': 'application/json',
    },
    data: body,
    ...(options || {}),
  });
}

/** addTeachClassCourse 修改教师授课记录 POST /api/teach/update */
export async function updateTeachClassCourseUsingPost(
  body: API.AddTeacherCourseDTO,
  options?: { [key: string]: any },
) {
  return request<API.ResultTeacherCourseVO_>('/api/teach/update', {
    method: 'POST',
    headers: {
      'Content-Type': 'application/json',
    },
    data: body,
    ...(options || {}),
  });
}
